import * as actionType from './action-users-type'

export const createAddUserAction = function (user) {
    return {
        type: actionType.AddUser,
        payload: user
    }
}
export const createDeleteUserAction = function (id) {
    return {
        type: actionType.DeleteUser,
        payload: id
    }
}
export const createUpdateUserAction = function (user) {
    return {
        type: actionType.UpdataUser,
        payload: user
    }
}